package com.cn.service.server.PartsManagement;

import com.cn.bean.vo.PartsManagement.ComponentItemClassification;
import com.cn.config.config.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComponentItemClassificationService {
    List<ComponentItemClassification> selectComponentItemClassificationAside();
    List<ComponentItemClassification>selectComponentItemClassificationText(@Param("cCode")String cCode, @Param("cName")String cName);

    List<ComponentItemClassification>selectComponentItemClassification(@Param("limit") int limit, @Param("page") int page, @Param("cCode")String cCode, @Param("cName")String cName);
    Result addComponentItemClassificationAside(@Param("mName")String mName, @Param("mDescription")String mDescription, @Param("mStatus")int mStatus, @Param("parentId")int parentId, @Param("level")int level, @Param("isLeaf")int isLeaf);
    //添加信息
    Result addComponentItemBasicInfoTable(@Param("cName")String cName,@Param("cDescription")String cDescription,@Param("cStatus")int cStatus,@Param("classificationId")int classificationId);
    List<ComponentItemClassification> selectAside();
    Result deleteAside(@Param("mId")int mId);
    Result deleteComponentItemBasicInfo(@Param("cId")int cId);
    Result updateAside(@Param("mId")int mId,@Param("mName")String mName,@Param("mDescription")String mDescription,@Param("mStatus")int mStatus,@Param("parentId")int parentId,@Param("level")int level);
    Result updateComponentItemBasicInfo(@Param("cId")int cId,@Param("cName")String cName,@Param("cDescription")String cDescription,@Param("cStatus")int cStatus,@Param("classificationId")int classificationId);
    List<ComponentItemClassification>selectChild();
    List<ComponentItemClassification>selectChildAuto1(@Param("cName") String cName);
}
